//
//  MeatPayOrderModel.h
//  PigMarket
//
//  Created by 张敬 on 2019/8/23.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "BaseParam.h"

NS_ASSUME_NONNULL_BEGIN

/*
 "shopId":"1",
 "shopName":"店铺1",
 "meets":Array[2],
 "pigId":5,
 "arrearsIf":1,
 "ranges":Array[7]
 */
@class Meats, Ranges, MeatsItem, MeatPayOrderItem;
@interface MeatPayOrderModel : BaseParam


@property (nonatomic, strong) NSArray <MeatPayOrderItem *> *list;

@end

/*
 positionName":"排骨",
 "positionId":"3",
 "list":Array[1]
 */

@interface MeatPayOrderItem : BaseParam

@property (nonatomic, strong) NSNumber *shopId;
@property (nonatomic, copy) NSString *shopName;
@property (nonatomic, strong) NSNumber *pigId;
@property (nonatomic, strong) NSNumber *arrearsIf;
@property (nonatomic, strong) NSArray <Meats *> *meets;
@property (nonatomic, strong) NSArray <Ranges *> *ranges;

@end



@interface Meats : BaseParam

@property (nonatomic, copy) NSString *positionName;
@property (nonatomic, strong) NSNumber *positionId;
@property (nonatomic, strong) NSArray <MeatsItem *> *list;

@end

/*
 "unitPrice":0.03,
 "aliasName":"肋排",
 "nowPrice":0.03,
 "advanceSaleId":5,
 "positionId":"3",
 "headImg":"http://39.98.179.212:8090/pigimg/r5.png",
 "weight":0.5,
 "chunksName":"HT-04"
 */
@interface MeatsItem : BaseParam

@property (nonatomic, strong) NSNumber *unitPrice;
@property (nonatomic, copy) NSString *aliasName;
@property (nonatomic, strong) NSNumber *nowPrice;
@property (nonatomic, strong) NSNumber *advanceSaleId;
@property (nonatomic, strong) NSNumber *positionId;
@property (nonatomic, copy) NSString *headImg;
@property (nonatomic, strong) NSNumber *weight;
@property (nonatomic, copy) NSString *chunksName;

@end

/*
 "tribeDeliveryRangeId":10,
 "tribeId":2,
 "longitude":"116.653041",
 "latitude":"39.35799"
 */
@interface Ranges : BaseParam

@property (nonatomic, strong) NSNumber *tribeDeliveryRangeId;
@property (nonatomic, strong) NSNumber *tribeId;
@property (nonatomic, copy) NSString *longitude;
@property (nonatomic, copy) NSString *latitude;

@end


@class MeatPayItem;
@interface MeatPayModel : BaseParam

@property (nonatomic, strong) NSArray <MeatsItem *> *list;


@end

@interface MeatPayItem : BaseParam

@property (nonatomic, strong) NSMutableArray *advanceSaleId;
@property (nonatomic, copy) NSString *shopId;

@end


@interface MeatOrderModel : BaseParam

@property (nonatomic, strong) NSNumber *orderId;
@property (nonatomic, copy) NSString *createTime;
@property (nonatomic, copy) NSString *price;
@property (nonatomic, copy) NSString *invalidTime;

@end






NS_ASSUME_NONNULL_END
